package com.lanou3g.ptp.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/*
职位和任务
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel("任务评分规则类")
public class TaskRole implements Serializable {

    @ApiModelProperty("任务评分规则id")
    private Long id;

    @ApiModelProperty("评分规则id")
    private Long roleId;

    @ApiModelProperty("任务id")
    private Long taskId;

    @ApiModelProperty("评分权重")
    private double ratio;

    @ApiModelProperty("评分方式")
    private Integer gradingType;

    @ApiModelProperty(name = "状态", hidden = true)
    private Integer status;

    @ApiModelProperty(name = "创建时间", hidden = true)
    private Date createTime;

    @ApiModelProperty(name = "更新时间", hidden = true)
    private Date updateTime;
}
